//
//  XLCollectionReusableView.m
//  UICollectionViewSctionColor
//
//  Created by yxl on 2022/3/28.
//

#import "XLCollectionReusableView.h"
#import "XLCollectionViewLayoutAttributes.h"

@implementation XLCollectionReusableView
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    if ([layoutAttributes isKindOfClass:[XLCollectionViewLayoutAttributes class]]) {
        XLCollectionViewLayoutAttributes *attr = (XLCollectionViewLayoutAttributes *)layoutAttributes;
        self.backgroundColor = attr.backGroundColor;
    }
}
@end
